package yuan.deng.service.impl;

import yuan.deng.dao.ItemsDao;
import yuan.deng.dao.impl.ItemsDaoImpl;
import yuan.deng.domain.Items;
import yuan.deng.service.ItemsService;

import java.util.List;

public class ItemsServiceImpl implements ItemsService {
    ItemsDao itemsDao=new ItemsDaoImpl();
    @Override
    public int addItems(Items items) {
        return itemsDao.addItems(items);
    }

    @Override
    public List<Items> findAll() {
        return itemsDao.findAll();
    }
}
